package com.wind.taobao.api.trade.itemprop.rest
{
	import com.wind.taobao.api.trade.itemprop.convert.ItemCatConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.itemcats.list.get  Response
	 * @author fxy
	 *
	 */
	public class ItemCatsGetV2Response extends TaobaoResponse
	{
		public var itemCats:ArrayCollection;

		public function ItemCatsGetV2Response(response:TaobaoResponse=null)
		{
			super(response);
			initItemCats();
		}

		private function initItemCats():void
		{
			if (body != null && this.isSuccess)
			{
				if (this.format == "xml")
				{
					//暂未实现
				}
				else
				{
					if (body["rsp"].hasOwnProperty("item_cats"))
						itemCats=ItemCatConvert.convertItemCats(body["rsp"]["item_cats"]);
				}
			}
		}
	}
}